/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package irsystem.scenario.method;

import java.util.List;

/**
 *
 * @author thoriq_r9
 */
public class AverageNIAP {

    List<Double> niap;

    public AverageNIAP(List<Double> niap) {
        this.niap = niap;
    }

    public double process() {
        double total = 0;
        for (int i = 0; i < niap.size(); ++i) {
            total += niap.get(i);
        }
        return (total / niap.size());
    }
}
